From: Marco Trevisan (TreviƱo) Date: Fri, 12 Apr 2019 21:01:09 +0000 (-0500) Subject: panel: Use menu items as actors X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~845^2^2~206 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=58e0b80cac30c1f408330cf5aa19e715c683f8bd;p=gnome-shell.git panel: Use menu items as actors All menu items are actors now, so remove all the actor property usages. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/499 --- diff --git a/js/ui/panel.js b/js/ui/panel.js index 5d3d779a0..6522e9099 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -122,7 +122,7 @@ class AppMenu extends PopupMenu.PopupMenu { _updateDetailsVisibility() { let sw = this._appSystem.lookup_app('org.gnome.Software.desktop'); - this._detailsItem.actor.visible = (sw != null); + this._detailsItem.visible = (sw != null); } isEmpty() { @@ -160,7 +160,7 @@ class AppMenu extends PopupMenu.PopupMenu { }); }); - this._newWindowItem.actor.visible = + this._newWindowItem.visible = app && app.can_open_new_window() && !actions.includes('new-window'); }